home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / scsh / cstuff.h < prev    next >
C/C++ Source or Header  |  1995-10-13  |  308b  |  10 lines

  1. #include "libcig.h"
  2. #define Alloc(type)     ((type *) malloc(sizeof(type)))
  3. #define Malloc(type,n)    ((type *) malloc(sizeof(type)*(n)))
  4. #define Free(p)        (free((char *)(p)))
  5. #define Realloc(type,p,n) ((type *) realloc(p, (n)*sizeof(type)))
  6.  
  7. /* String equality predicate. */
  8. #define streq(a,b) (!strcmp((a),(b)))
  9.  
  10.